Hybris Sales UX API icon

Hybris Sales UX API

(0 reviews)

TMF-700 Create Shipping Order Quote

This use case is to creates shipping order quote.

URL
https://[localhost]:[port]/ecom-sales-ux/v1/{businessId}/shippingOrder
url Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
N
cURL request
curl --location 'https://[localhost]:[port]/ecom-sales-ux/v1/{businessId}/shippingOrder' \
--header 'client_id: 12344' \
--header 'client_secret: 11111' \
--header 'Content-Type: application/json' \
--data '{
    "placeTo": {
        "name": "901 Market Street 6th Floor San Francisco, CA 94103", //dropoff_address                //Digital
        "role": "Recepient"
    },
    "placeFrom": {
        "name": "901 Market Street 6th Floor San Francisco, CA 94103", //pickup_address
        "geographicSubAddress": [
            {
                "id": "myBusiness123", //pickup_external_business_id            //Digital
                "name": "store-456" //pickup_external_store_id                    //Digital
            }
        ],
        "role": "PickupStore"
    },
    "relatedParty": [
        {
            "name": "John Doe", //dropoff_contact_given_name + dropoff_contact_family_name
            "role": "Recepient", //indicates dropoff information
            "@referredType": "Individual",
            "contactMedium": [
                {
                    "mediumType": "Phone",
                    "preferred": true,
                    "characteristic": {
                        "phoneNumber": "+16505555555" //dropoff_phone_number                //Digital
                    }
                }
            ]
        },
        {
            "name": "Liberty Store", //pickup_business_name
            "role": "PickupStore", //indicates pickup information
            "@referredType": "Organization",
            "contactMedium": [
                {
                    "mediumType": "Phone",
                    "preferred": true,
                    "characteristic": {
                        "phoneNumber": "+16505555555" //pickup_phone_number            //Digital
                    }
                }
            ]
        }
    ],
    "shippingOrderCharacteristic": [
        {
            "name": "shipping_partner", //to indicate integration with DoorDash
            "value": "doordash"
        },
        {
            "name": "order_fulfillment_method",
            "value": "standard" //order_fulfillment_method            //Digital
        },
        {
            "name": "locale",
            "value": "en-US" //locale            //Digital
        }
    ],
    "shippingOrderItem": [
        {
            "id": "D-134556", //external_delivery_id            //Digital
            "action": "add",
            "shipment": {
                "collectionDate": "2025-07-09T07:00:00.000-04:00" //pickup_time                //Digital
            }
        }
    ]
}'
Definitions

Each of the request parameters is detailed.

NameTypeDescriptionRequired
placeToObjectObject describes drop off addressY
placeTo.nameStringComma-separated full address of the destinationY
placeFromObjectObject describes drop off addressY
placeFrom.nameStringComma-separated full address of the pickup locationY
placeFrom.geographicSubAddress.idStringPickup Business idY
placeFrom.geographicSubAddress.nameStringPickup Store idN
relatedParty[].nameStringParty name (Business Name/Dropoff Name)Y
relatedParty[].roleStringParty role (Recipient, PickupStore)Y
relatedParty[].@referredTypeStringType of party (Individual, Organization)Y
relatedParty[].contactMedium[].mediumTypeStringContact type (e.g., Phone)N
relatedParty[].contactMedium[].preferredBooleanWhether it is the preferred contact methodN
relatedParty[].contactMedium[].characteristic.phoneNumberStringContact phone number Mandatory for dropoffY*
shippingOrderCharacteristic[].nameStringName of metadata (e.g., shipping_partner , order_fulfillment_method, locale are Required)Y*
shippingOrderCharacteristic[].valueMixedValue of the metadataN
shippingOrderCharacteristic[].valueTypeStringOptional: describes the type (e.g., object, string)N
shippingOrderItem[].idStringExternal delivery IDY
shippingOrderItem[].actionStringOrder action (add, modify, etc.)N
shippingOrderItem[].shipment.collectionDateDateTimePickup timeY
Response
{
    "id": "D-1763",                    //external_delivery_id
    "shippingOrderCharacteristic": [
        {
            "name": "tracking_url",
            "value": "https://doordash.com/tracking?id=1345"
        }
    ],
    "shippingOrderPrice": {
        "priceType": "deliveryQuote",
        "price": {
            "taxIncludedAmount": {
                "value": 19.99,                //fee
                "unit": "USD"
            },
            "dutyFreeAmount": {
                "value": 19.00,
                "unit": "USD"
            },
            "taxAmount": {
                "value": 0.99,
                "unit": "USD"
            }
        }
    },
    "relatedParty": [
        {
            "id": "1232142",
            "name": "John D.",
            "role": "DeliveryAgent",
            "@referredType": "Individual"
        }
    ],
    "shippingOrderItem": [
        {
            "id": "D-1763",                //external_delivery_id
            "action": "add",
            "shipment": {
                "collectionDate": "2025-07-09T07:00:00.000-04:00",
                "pickupDate": "2025-07-09T07:00:00.000-04:00",                //pickup_time_estimated
                "expectedDeliveryDate": "2025-07-09T07:00:00.000-04:00"        //dropoff_time_estimated
            }
        }
    ],
    "status": "quoted"                //delivery_status
}
Definitions

Each of the response parameters is detailed.

NameTypeDescriptionrequired
idstringExternal Delivery idN
shippingOrderCharacteristic[name = "tracking_url"].valuestringTracking urlN
shippingOrderPrice.priceTypestringType of price (deliveryQuote)N
shippingOrderPrice.price.taxIncludedAmount.valuenumberOrder ValueN
shippingOrderPrice.price.dutyFreeAmount.valuenumberDelivery FeeN
shippingOrderPrice.price.taxAmount.valuenumberTax amountN
relatedParty.idstringDasher IdN
relatedParty.namestringDasher NameN
relatedParty.rolestringRelated Party Role. i.e DeliveryAgentN
relatedParty.@referredTypestringReffered type of related party. i.e IndividualN
shippingOrderItem.idstringExternal Delivery idN
shippingOrderItem.actionstringAction performed. "add" in this caseN
shippingOrderItem.shipment.collectionDatedatetimeActual Pickup timeN
shippingOrderItem.shipment.pickupDatedatetimeEstimated pickup timeN
shippingOrderItem.shipment.expectedDeliveryDatedatetimeEstimated dropoff timeN
statusstringDelivery StatusN

####


Reviews